-- GENERATED SPELL FOR [Withered Reaver] --


function spell0_7328(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7328', 569, 1)
end

function spell1_7328(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_7328', 581, 1)
end

function Sorts_7328(pUnit, Event)
local choix_sorts_7328 = math.random(0, 1)
if choix_sorts_7328 == 0 then
pUnit:RegisterEvent('spell0_7328', 1, 1)
end
if choix_sorts_7328 == 1 then
pUnit:RegisterEvent('spell1_7328', 1, 1)
end
end

function mob7328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7328', math.random(1500, 3000), 1)
end

function mob7328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7328, 1, 'mob7328_Action')
RegisterUnitEvent(7328, 2, 'mob7328_Leave')
RegisterUnitEvent(7328, 3, 'mob7328_Kill')
RegisterUnitEvent(7328, 4, 'mob7328_Die')
